package com.bluefox.search.es.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 搜索中的商品价格
 * Created by macro on 2018/6/19.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Document(indexName = "pms", type = "price",shards = 1,replicas = 0)
public class EsPrice implements Serializable {
    private static final long serialVersionUID = -1L;
    @Id
    private Long id;
    //类型
    private Integer type;
    //状态
    private Integer status;
    //省份编码
    private String provinceCode;
    //省份名称
    private String provinceName;
    //城市编码
    private String cityCode;
    //城市名称
    private String cityName;
    //所属区县编码
    private String countyCode;
    //所属区县名称
    private String countyName;
    //折扣
    private String discount;
    //开始时间
    private Date startTime;
    //结束时间
    private Date endTime;
    //是否有效
    private Integer isEffecive;
}
